//数据劫持
//Object.defineProperty

let person ={
    name:'feng',
    eat:'dinner'
}
Object.defineProperty(person,'eat',{
    get(){
        return value
    },
    set(newval){
        eat ='chicken'
    }
})

person.eat='duck'
// person.like='coding'

console.log(person);